package com.component.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author Xiongx
 * @version 1.0
 * @date 2021/6/6 1:00
 * @since JDK 1.8
 */
@TableName("m_content")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Content {

    @TableId(type = IdType.AUTO)
    private Integer id;

    @TableId(type =IdType.INPUT)
    private Integer nid;

    @TableField(exist = false)
    private Boolean isencrypt;

    @TableField(exist = false)
    private String title;

    @TableField(exist = false)
    private String tag;

    @TableField(exist = false)
    private Date createtime;

    @TableField(exist = false)
    private Integer viewnum;

    @TableField(value = "content")
    private String content;

    @TableField(exist = false)
    private String channelid;

    @TableField(exist = false)
    private String datatype;

    @TableField(exist = false)
    private String userid;
}
